Date: Fri, 31 May 2013 14:39:14 +0200 From: Joerg Schilling <Joerg.Schilling@fokus.fraunhofer.de> To: <freebsd-bugs@FreeBSD.org> Subject: Problems with gcc on FreeBSD-9.1 Message-ID: <51a899f2.KZfZEQ%2B2cXatLHzH%Joerg.Schilling@fokus.fraunhofer.de>
next in thread | raw e-mail | index | archive | help
Hi, gcc on FreeBSD-9.1 has a problem in CPP. It does not handle undefined macros correctly. XXX > 2 If ther is no #define XXX, the above code has to be evaluated as if XXX has the value 0. FreeBSD 9.1 introduced #define __FreeBSD_kernel__ in sys/param.h which is wrong and breaks Debian kBSD compatibility. Note that Denbian has something like: #define __FreeBSD_kernel__ 8 If you however use: #if defined(_FreeBSD_kernel__) && (__FreeBSD_kernel > 2) this now fails on FreeeBSD with: operator '>' has no left operand This causes cdda2wav to fail to compile. BTW: the FreeBSD install CD: FreeBSD-9.1-RELEASE-i386-bootonly.iso uses NetBSD as system ID and in addition it seems that it has been created with a dubious mkisofs version: - Rock Ridge was withdrawn in favor of UDF, so there was never a IEEE P1282 standard. Thou should not use "IEEE_P1282" as ID in the extension record. - mkisofs got plenty of bug fixes in August 2006 and since then correctly hides the "/.rr_moved" directory. You should use a recent mkisofs version for best results. Jörg -- EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin js@cs.tu-berlin.de (uni) joerg.schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51a899f2.KZfZEQ%2B2cXatLHzH%Joerg.Schilling>